import axios from '@/api/fetch';
import SERVER from '@/api/server';
//开票登记表信息查询
export const getSoInvoice = params => axios.get(`${SERVER.CYXDMS_RETAIL}/ordermanage/soInvoice`, { params })
//单条新增/修改开票信息（soInvoiceId为null新增，有值修改）
export const postSoInvoice = params => axios.post(`${SERVER.CYXDMS_RETAIL}/ordermanage/soInvoice`, params )
//根据soInvoiceId查询开票信息（用于编辑和明细查询）
export const queryInvoiceById = (id, params) => axios.get(`${SERVER.CYXDMS_RETAIL}/ordermanage/soInvoice/queryInvoiceById/${id}`, { params } )
//根据soVinId查询客户信息（用于选择销售订单查询）
export const queryOrderVinInvoice = (id, params) => axios.get(`${SERVER.CYXDMS_RETAIL}/ordermanage/soInvoice/queryOrderVinInvoice/${id}`, { params } )
//开票-选择销售订单查询
export const querySalesOrderVin = params => axios.get(`${SERVER.CYXDMS_RETAIL}/ordermanage/soInvoice/querySalesOrderVin`, { params } )
